package Introduction

import (
	"day12_12_homework/internal/api/introduction"
	"day12_12_homework/internal/middle"
	"github.com/gin-gonic/gin"
)

func IntroductionRouter(c *gin.RouterGroup) {
	introRouter := c.Group("/introduction").Use(middle.AuthMiddleware())
	{
		introRouter.POST("/create", introduction.CreateIntro)
		introRouter.GET("/list", introduction.ListIntroduction)
	}
}
